package com.company.dcm.common;

import lombok.Data;

@Data
public class R_Receive {
    private String state; //编码：00成功，01为失败
    private String message; //信息

    public static R_Receive success() {
        R_Receive r = new R_Receive();
        r.state = "00";
        r.message="上传成功";
        return r;
    }

    public static R_Receive error(){
        R_Receive r = new R_Receive();
        r.state = "01";
        r.message="上传失败, 数据库连接失败";
        return r;
    }
}
